const mongoose = require("mongoose");
const schema = new mongoose.Schema({
  title: { type: String, require: true },
  author: { type: String, require: true, default: "鲁迅" },
  des: { type: String, require: true, default: "这个人很懒，没有写简介" },
});

const article = mongoose.model("articles", schema);
module.exports = article;
